package svc

import (
	"2206a/docyor1/api/internal/config"
	"2206a/docyor1/doctor_srv/doctorclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config    config.Config
	DoctorSrv doctorclient.Doctor
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		DoctorSrv: doctorclient.NewDoctor(zrpc.MustNewClient(c.DoctorSrv)),
	}
}
